package com.mms.action.minutes;

import java.util.List;

import com.mms.dao.MinutesDao;
import com.mms.entity.MinutesString;
import com.opensymphony.xwork2.Action;

public class GetMinStringAction implements Action{

	private List<MinutesString> minutes;
	private String topic;
	
	public List<MinutesString> getMinutes() {
		return minutes;
	}

	public void setMinutes(List<MinutesString> minutes) {
		this.minutes = minutes;
	}

	public String getTopic() {
		return topic;
	}

	public void setTopic(String topic) {
		this.topic = topic;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		MinutesDao md = new MinutesDao();
		System.out.println("---------------->"+topic);
		minutes = md.getMinStringMes(topic);
		return "success";
	}

}
